<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>礼金记账</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/mer/weddingGift">礼金记账</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="merCustomer" action="${ctx}/mer/weddingGift/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>用户名：</label>
				<form:input path="nickname" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>手机号：</label>
				<form:input path="mobile" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>头像</th>
				<th>用户名</th>
				<th>手机号</th>
				<th>真实姓名</th>
				<th>性别</th>
				<th>最后登录时间</th>
				<th>用户来源</th>
				<th>第三方渠道</th>
				<th>第三方渠道编号</th>
				<th>城市</th>
				<th>备注</th>
				<shiro:hasPermission name="mer:merCustomer:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="merCustomer">
			<tr>
				<td style="width:60px;height:60px">
					<img alt="" src="${merCustomer.photo}">
				</td>
				<td>
					${merCustomer.nickname}
				</td>
				<td>
					${merCustomer.mobile}
				</td>
				<td>
					${merCustomer.realname}
				</td>
				<td>
					<c:if test="${merCustomer.gender==0}">未知</c:if>
					<c:if test="${merCustomer.gender==1}">男</c:if>
					<c:if test="${merCustomer.gender==2}">女</c:if>
				</td>
				<td>
					${merCustomer.endTime}
				</td>
				<td>
					${merCustomer.eventchannelId}
				</td>
				<td>
					${merCustomer.thirdpartyType}
				</td>
				<td>
					${merCustomer.thirdpartyId}
				</td>
				<td>
					${merCustomer.address}
				</td>
				<td>
					${merCustomer.remarks}
				</td>
				<shiro:hasPermission name="mer:weddingGift:view"><td>
					<a href="${ctx}/mer/weddingGiftDetail/list?thirdpartyId=${merCustomer.thirdpartyId}">查看礼金记账</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>